﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DAO
{
    public class DAO{ 
            
        static DAO instance = null;
        static readonly protected object padlock = new object();
            
        public DAO()
        {
        }
            
        public static DAO Instance
        {
            get
            {
                if (instance == null)
                {
                    lock (padlock)
                    {
                        if (instance == null)
                        {
                            instance = new DAO();
                        }
                    }
                }
                return instance;
            }
        }
        
    }
}
